<?php

namespace App\SendRequest\WxRequests;

class GetAccessToken extends WxRequest
{
    public function __construct()
    {
        $this->method = "Get";
        $this->uri = "cgi-bin/token";
        $this->configureClient([
            'query' => [
                'grant_type' => 'client_credential',
                'appid' => env("WXMINI_APPID"),
                'secret' => env("WXMINI_SECRET")
            ]
        ]);
    }
}
